package com.yc.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yc.cloud.entity.BaseEntity;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 后台用户登录日志表
 * </p>
 *
 * @author JackGu
 * @since 2022-09-11
 */
@Data
@TableName("ums_admin_login_log")
@ApiModel(value = "UmsAdminLoginLog对象", description = "后台用户登录日志表")
public class UmsAdminLoginLog {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", hidden = true)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("管理员ID")
    @TableField("admin_id")
    private Long adminId;

    @ApiModelProperty("登录时间")
    @TableField("login_time")
    private LocalDateTime loginTime;

    @ApiModelProperty("IP")
    @TableField("ip")
    private String ip;

    @ApiModelProperty("地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("浏览器登录类型")
    @TableField("user_agent")
    private String userAgent;

    public static final String ID = "id";
    public static final String ADMIN_ID = "admin_id";

    public static final String LOGIN_TIME = "login_time";

    public static final String IP = "ip";

    public static final String ADDRESS = "address";

    public static final String USER_AGENT = "user_agent";

}
